package emp.entidades;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.axcessfinancial.domain.*;
import com.sun.org.apache.xml.internal.security.c14n.helper.C14nHelper;

@Entity
@Table(name="artAlmacen")
public class EntArtAlmacen  extends com.axcessfinancial.domain.BaseEntity implements Serializable{

	private EntArticulo entArticulo;
	
	private EntAlmacen entAlmacen;
	
	private double stock;
	private double stockDisp;
	//private String createBy;
	//private Date createDate;
	

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="idArticulo")
	public EntArticulo getEntArticulo() {
		return entArticulo;
	}
	public void setEntArticulo(EntArticulo entArticulo) {
		this.entArticulo = entArticulo;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="idAlmacen")
	public EntAlmacen getEntAlmacen() {
		return entAlmacen;
	}
	public void setEntAlmacen(EntAlmacen entAlmacen) {
		this.entAlmacen = entAlmacen;
	}

	@Column(name="stock", length=12, precision=2)
	public double getStock() {
		return stock;
	}
	public void setStock(double stock) {
		this.stock = stock;
	}

	@Column(name="stockDisp", length=12, precision=2)
	public double getStockDisp() {
		return stockDisp;
	}
	public void setStockDisp(double stockDisp) {
		this.stockDisp = stockDisp;
	}

	/*
	@Column(name="createBy", length=20)
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	
	@Column(name="createDate")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
*/
	
	public EntArtAlmacen() {
		// TODO Auto-generated constructor stub
	}
	
	public EntArtAlmacen(EntArticulo entArticulo, EntAlmacen entAlmacen,
			double stock, double stockDisp, String createBy, Date createDate) {
		super();
		this.entArticulo = entArticulo;
		this.entAlmacen = entAlmacen;
		this.stock = stock;
		this.stockDisp = stockDisp;
	//	this.createBy = createBy;
	//	this.createDate = createDate;
	}	
	
}
